package site.yaoer.dongbao.ums.entity.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ToString
public class UmsMemberRegisterDTO implements Serializable {

    @Size(min = 1, max = 8, message = "用户名长度在1-8之间")
    private String username;

    @NotNull(message = "密码不能为空")
    private String password;

    /**
     * 头像
     */
    private String icon;

    /**
     * 邮箱
     */
    @Email
    private String email;

    /**
     * 昵称
     */
    private String nickName;
}
